/*
 * Project: Sudoku Hint Engine for Android
 * Copyright (C) 2010-2013 Emanuel Moecklin
 * 
 * Available under the terms of the Lesser General Public License (LGPL)
 */
package com.onegravity.sudoku.solver.checks;

import android.net.Uri;

import com.onegravity.sudoku.solver.HintResource;
import com.onegravity.sudoku.solver.HintType;
import com.onegravity.sudoku.solver.core.Rule;
import com.onegravity.sudoku.solver.core.WarningHint;
import com.onegravity.sudoku.solver.data.Grid;
import com.onegravity.sudoku.solver.util.HtmlLoader;

public class NoHintsWarning extends WarningHint implements Rule {

	private static final long serialVersionUID = 6858960778297310955L;
	
	public NoHintsWarning(Grid grid) {
		super(grid);
	}

	@Override
	public String toString() {
		return HintResource.NO_HINTS.toString();
	}
	@Override
    public String getHintHtml(HintType hintType) {
        String result = HtmlLoader.loadHtml(HintResource.NO_HINTS.hint());
        return HtmlLoader.format(result);
	}
    @Override
    public int getNrOfSteps() {
        return 1;
    }

	@Override
	public String getName() {
		return HintResource.NO_HINTS.name();
	}

    @Override
    public Uri getLink() {
		return HintResource.NO_HINTS.getUrl();
    }

    @Override
	public double getDifficulty() {
		return 0;
	}
    
}